import request from '@/plugins/axios/request';
const baseURL = process.env.VUE_APP_BASE_API

// [发布管理]科研/管理/通知-分页查询
export function getArticleList(data) {
  return request({
    url: `${baseURL}/tech-article/list`,
    method: "post",
    data: data,
  });
}
// [发布管理]科研/管理/通知-新增
export function insertArticle(data) {
  return request({
    url: `${baseURL}/tech-article/insert`,
    method: "post",
    data: data,
  });
}

// [发布管理]科研/管理/通知-编辑
export function editArticle(data) {
  return request({
    url: `${baseURL}/tech-article/edit`,
    method: "post",
    data,
  });
}
// [发布管理]科研/管理/通知-详情
export function articleDetail(data) {
  return request({
    url: `${baseURL}/tech-article/detail`,
    method: "get",
    params: data,
  });
}
// [发布管理]科研/管理/通知-批量删除
export function batchDelete(data) {
  return request({
    url: `${baseURL}/tech-article/batchDelete`,
    method: "post",
    data,
    isShowMessage:true
  });
}
// [发布管理]科研/管理/通知-批量发布
export function batchPublish(data) {
  return request({
    url: `${baseURL}/tech-article/batchPublish`,
    method: "post",
    data,
  });
}

// [发布管理]科研/管理/通知-下载模板
export function downloadTemplate(data) {
  return request({
    url: `${baseURL}/tech-article/downloadTemplate`,
    method: 'get',
    params: data,
    isDownLoadFile: true
  })
}
// [发布管理]意见批量导入
export function importNotices(data) {
  return request({
    url: `${baseURL}/tech-article/importNotices`,
    method: "post",
    data,
  });
}
// [发布管理]会议-批量导入
export function importResearchDynamics(data) {
  return request({
    url: `${baseURL}/tech-article/importResearchDynamics`,
    method: "post",
    data,
  });
}
// [发布管理]通知-批量导入
export function importRegulations(data) {
  return request({
    url: `${baseURL}/tech-article/importRegulations`,
    method: "post",
    data,
  });
}
// [发布管理]会议评论
export function addComment(data) {
  return request({
    url: `${baseURL}/tech-article/addComment`,
    method: "post",
    data,
  });
}
